<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Revolution: <%= controller.controller_name.capitalize %> </title>
  
  <%= stylesheet_link_tag 'scaffold' %>
  <%= stylesheet_link_tag 'print', :media => 'print' %>

  <%= javascript_include_tag :defaults, 'swfobject' %>
<%= stylesheet_link_tag 'calendar.css' %>
<%= stylesheet_link_tag 'calendar/blue/style.css' %>
<%= stylesheet_link_tag 'redbox' %>
<%= javascript_include_tag 'redbox' %>


<%= javascript_include_tag 'calendar' %>

<%= include_tiny_mce_if_needed %>


</head>
<body>	
<div id="all-wrapper">
	<div id="header">
			<div id="logo">
			
			</div>
	</div>	
	
	<div id="left-nav">
	

		<div id="login_box">
			<%= render :partial => "account/smart_login" %>	
		</div>

<% if logged_in? %>
	<table id="container">
        <tr>
            <% @hide_sidebar ||= false %>
            <% unless @hide_sidebar %>
            <td id="sidebar">
                <%= render(:partial => '/search/auto_complete_text_box', :layout => false )%>
                <% unless @hide_controller_sidebar %>
                    <%= render(:partial => "sidebar", :layout => false) if File.exists?(File.join(RAILS_ROOT, "app/views/#{params[:controller]}/_sidebar.rhtml")) %>
                    <%= render(:partial => "sidebar_#{params[:action]}", :layout => false) if File.exists?(File.join(RAILS_ROOT, "app/views/#{params[:controller]}/_sidebar_#{params[:action]}.rhtml")) %>
                <% end %>
            </td>
                <% end %>
        </tr>
    </table>
	
	<%= render :partial => 'shared/left_nav' %>
	
<% end %>
	</div>

	
<div id="main" style="float:none;clear:both;">
		
	<div id="shadow-container">
	        <div class="shadow1">
	            <div class="shadow2">
	                <div class="shadow3">
	                    <div class="container">
							<div id="notice">
								<p style="color:green;">
									<%= flash[:notice] %>
								</p>
							</div>
								<%= yield %>
								
	                    </div>
	                </div>
	            </div>
	        </div>
	    </div>	
	</div>
	

	
	<div id="dashboard">
		<%= yield :dashboard %>
	</div>


</div>



</body>
</html>